#Title: The Date object's methods
NN: Netscape, IE: Internet Explorer, ECMA: Web Standard
| Methods | Explanation | NN | IE | ECMA |
|---|---|---|---|---|
| Date() | Returns a Date object | 2.0 | 3.0 | 1.0 |
| getDate() | Returns the date of a Date object (from 1-31) | 2.0 | 3.0 | 1.0 |
| getDay() | Returns the day of a Date object (from 0-6. 0=Sunday, 1=Monday, etc.) | 2.0 | 3.0 | 1.0 |
| getMonth() | Returns the month of a Date object (from 0-11. 0=January, 1=February, etc.) | 2.0 | 3.0 | 1.0 |
| getFullYear() | Returns the year of a Date object (four digits) | 4.0 | 4.0 | 1.0 |
| getYear() | Returns the year of a Date object (from 0-99). Use getFullYear instead !! | 2.0 | 3.0 | 1.0 |
| getHours() | Returns the hour of a Date object (from 0-23) | 2.0 | 3.0 | 1.0 |
| getMinutes() | Returns the minute of a Date object (from 0-59) | 2.0 | 3.0 | 1.0 |
| getSeconds() | Returns the second of a Date object (from 0-59) | 2.0 | 3.0 | 1.0 |
| getMilliseconds() | Returns the millisecond of a Date object (from 0-999) | 4.0 | 4.0 | 1.0 |
| getTime() | Returns the number of milliseconds since midnight 1/1-1970 | 2.0 | 3.0 | 1.0 |
| getTimezoneOffset() | Returns the time difference between the user's computer and GMT | 2.0 | 3.0 | 1.0 |
| getUTCDate() | Returns the date of a Date object in universal (UTC) time | 4.0 | 4.0 | 1.0 |
| getUTCDay() | Returns the day of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCMonth() | Returns the month of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCFullYear() | Returns the four-digit year of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCHours() | Returns the hour of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCMinutes() | Returns the minutes of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCSeconds() | Returns the seconds of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| getUTCMilliseconds() | Returns the milliseconds of a Date object in universal time | 4.0 | 4.0 | 1.0 |
| parse() | Returns a string date value that holds the number of milliseconds since January 01 1970 00:00:00 | 2.0 | 3.0 | 1.0 |
| setDate() | Sets the date of the month in the Date object (from 1-31) | 2.0 | 3.0 | 1.0 |
| setFullYear() | Sets the year in the Date object (four digits) | 4.0 | 4.0 | 1.0 |
| setHours() | Sets the hour in the Date object (from 0-23) | 2.0 | 3.0 | 1.0 |
| setMilliseconds() | Sets the millisecond in the Date object (from 0-999) | 4.0 | 4.0 | 1.0 |
| setMinutes() | Set the minute in the Date object (from 0-59) | 2.0 | 3.0 | 1.0 |
| setMonth() | Sets the month in the Date object (from 0-11. 0=January, 1=February) | 2.0 | 3.0 | 1.0 |
| setSeconds() | Sets the second in the Date object (from 0-59) | 2.0 | 3.0 | 1.0 |
| setTime() | Sets the milliseconds after 1/1-1970 | 2.0 | 3.0 | 1.0 |
| setYear() | Sets the year in the Date object (00-99) | 2.0 | 3.0 | 1.0 |
| setUTCDate() | Sets the date in the Date object, in universal time (from 1-31) | 4.0 | 4.0 | 1.0 |
| setUTCDay() | Sets the day in the Date object, in universal time (from 0-6. Sunday=0, Monday=1, etc.) | 4.0 | 4.0 | 1.0 |
| setUTCMonth() | Sets the month in the Date object, in universal time (from 0-11. 0=January, 1=February) | 4.0 | 4.0 | 1.0 |
| setUTCFullYear() | Sets the year in the Date object, in universal time (four digits) | 4.0 | 4.0 | 1.0 |
| setUTCHour() | Sets the hour in the Date object, in universal time (from 0-23) | 4.0 | 4.0 | 1.0 |
| setUTCMinutes() | Sets the minutes in the Date object, in universal time (from 0-59) | 4.0 | 4.0 | 1.0 |
| setUTCSeconds() | Sets the seconds in the Date object, in universal time (from 0-59) | 4.0 | 4.0 | 1.0 |
| setUTCMilliseconds() | Sets the milliseconds in the Date object, in universal time (from 0-999) | 4.0 | 4.0 | 1.0 |
| toGMTString() | Converts the Date object to a string, set to GMT time zone | 2.0 | 3.0 | 1.0 |
| toLocaleString() | Converts the Date object to a string, set to the current time zone | 2.0 | 3.0 | 1.0 |
| toString() | Converts the Date object to a string | 2.0 | 4.0 | 1.0 |
#Title: JavaScript Date Object
#Element: 176: JavaScript Date Object